﻿<UserControl x:Class="SharpTalk.Client.WpfApplication.Controls.DialogActionsPanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Controls="clr-namespace:SharpTalk.Client.WpfApplication.Controls"
             mc:Ignorable="d" 
             d:DesignHeight="48" d:DesignWidth="358">
    
    <StackPanel x:Name="root" Orientation="Horizontal" HorizontalAlignment="Right">
        <Button x:Name="btnNo" IsDefault="{Binding ButtonNoIsDefault, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" IsEnabled="{Binding ButtonNoIsEnabled, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Command="{Binding ButtonNoCommand, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Visibility="{Binding Path=ShowButtonNo, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel},  Converter={StaticResource BooleanToVisibilityConverter}}" Content="{Binding ButtonNoContent, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Style="{StaticResource DialogButtonStyle}" IsCancel="True"/>
        <Button x:Name="btnYes" IsDefault="{Binding ButtonYesIsDefault, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" IsEnabled="{Binding ButtonYesIsEnabled, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Command="{Binding ButtonYesCommand, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Visibility="{Binding Path=ShowButtonYes, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}, Converter={StaticResource BooleanToVisibilityConverter}}" Content="{Binding ButtonYesContent, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Style="{StaticResource DialogButtonStyle}"/>
        <Button x:Name="btnCancel" IsDefault="{Binding ButtonCancelIsDefault, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" IsEnabled="{Binding ButtonCancelIsEnabled, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Command="{Binding ButtonCancelCommand, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Visibility="{Binding Path=ShowButtonCancel, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}, Converter={StaticResource BooleanToVisibilityConverter}}" Content="{Binding ButtonCancelContent, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Style="{StaticResource DialogButtonStyle}" IsCancel="True"/>
        <Button x:Name="btnOk" IsDefault="{Binding ButtonOkIsDefault, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" IsEnabled="{Binding ButtonOkIsEnabled, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Command="{Binding ButtonOkCommand, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Visibility="{Binding Path=ShowButtonOk, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel},  Converter={StaticResource BooleanToVisibilityConverter}}" Content="{Binding ButtonOkContent, RelativeSource={RelativeSource AncestorType=Controls:DialogActionsPanel}}" Style="{StaticResource DialogButtonStyle}"/>
    </StackPanel>
    
</UserControl>
